LassoScript Utility
Basics Browse Detail

[Integer->BitOr]

Tag Link [Integer->BitOr] Category Math
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None (Modifies in place) Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Integer->BitOr] performs a bitwise Or operation between each bit in the base integer and the integer parameter.

Syntax

[Integer Variable->(BitOrInteger Value)]

Parameters

Required Parameters
Integer Value The value of the integer which should be combined to the base integer using a bitwise OR operation.

Examples

To combine two integers using a bitwise OR operation:

Use the [Integer->BitOr] tag. The following example shows the result of performing a bitwise OR operation on 14 (1110) and 13 (1101), resulting in 15 (1111).

[Variable: 'Result'=14]
[($Result)->(BitOr: 13)]
[Variable: 'Result']

15